cmake_minimum_required(VERSION 3.9)
project(step9)

add_executable(step9 src/src9.cpp)

include(CTest)

macro (do_test test_name arg result)
  add_test (test${test_name} step9 ${arg})
  set_tests_properties (test${test_name} PROPERTIES PASS_REGULAR_EXPRESSION ${result})
endmacro (do_test)

do_test(1 "hello" "hello passed")
do_test(2 "" "No params")
do_test(3 "hello world" "hello world passed")

